<template>
  <el-dialog :title="title" :close-on-click-modal="false" :fullscreen="true" :visible.sync="visible"
    :before-close="cancel" class="JNPF-dialog JNPF-dialog_center" lock-scroll width="50%">
    
    <section data-v-0e995baa="" data-v-651b79a3="" class="app-main">
<iframe data-v-0e995baa="" src="http://116.227.48.142:8086/chatbot/298dd2QNbpFnc7XD" frameborder="0" allow="microphone" style="border-radius: 10px; width: 30%; height: 85%; right: 0.5%; min-height: 600px; position: absolute; z-index: 10; display: none;">
</iframe> 
<div data-v-0e995baa="" style="min-height: calc(-84px + 100vh); width: 100%; position: relative; overflow: hidden;">
<iframe src="https://www.wxb3d.com/saas/sdk-view/#/1633665850273828864" style="width: 100%; min-height: calc(-84px + 100vh); border: none;">
</iframe></div> <!---->
</section>


    <el-row class="JNPF-common-search-box" :gutter="16">

    </el-row>


    <StudqueryFcuston ref="StudqueryFcuston" @confirm="shoplist" />
  </el-dialog>
</template>
<script>
  import StudqueryFcuston from "@/components/StudqueryFcuston/StudqueryFcuston.vue"
  import jnpf from "@/utils/jnpf"
  export default {
    components: { StudqueryFcuston },
    props: {
      formationlist: {
        type: Array,
        default: [],
      },
    },
    data() {
      return {
        title: "新增",
        insertorupdate: true,
        dataForm: {
          FBILLNO :"K241130001",
          FUSERNUMBER:"241001",
          FUSER: "曹操",
          FUSERTYPE:"本院人员",
          FBILLCREDATE: "2024-11-25",
          FMEMO: "有机化学实验操作课",
          FBEGDATE: "2024-12-01",
          FENDDATE: "2025-11-30",
          FCHECKUSE: "汉武帝",
          FBILLSTATE: "申请中",
          FCHECKDATE: "",
          FNOTE: ""
        },
        rules: {
          FUSERNUMBER:[
            { required: true, message: '请输入学籍号码', trigger: 'blur' },
          ],
          FUSER: [
            { required: true, message: '请输入申请人员', trigger: 'blur' },
          ],
          FMEMO: [
            { required: true, message: '请输入申请理由', trigger: 'blur' },
          ],
        },
        list: [{  "FENTRYID":1,
                  "FGRAND": "综合实验楼",
                  "FLEVEL": "一楼",
                  "FPOINT": "奉综教楼201"
                },
                { "FENTRYID":1,
                  "FGRAND": "综合实验楼",
                  "FLEVEL": "一楼",
                  "FPOINT": "奉综教楼202"
                }],
        loading: false,
        visible: false,

        //所属校区选择数据
        options1: [{
          value: '1',
          label: '申请中'
        }, {
          value: '2',
          label: '已通过'
        }, {
          value: '3',
          label: '已驳回'
        }],

        //所属校区选择数据
        options2: [{
          value: '1',
          label: '本院人员'
        }, {
          value: '2',
          label: '培训人员'
        }, {
          value: '3',
          label: '外来人员'
        }],
        
      };
    },
    created() {
    },
    mounted() { },
    methods: {
      closePage(){
        console.log('关闭弹窗dialog');
        this.visible = false;
      },
      init(FBILLNO) {
        this.dataForm.FBILLNO = FBILLNO;
        if (this.dataForm.FBILLNO) {
          this.title = "修改"
          this.insertorupdate = false;
        }
        else {
          this.title = "新增"
          this.dataForm.FBILLNO = "K" + Math.floor(Math.random() * 10000000) + 1;
          this.insertorupdate = true;
        }
        this.visible = true;
      },
      insert() {
        this.$refs.StudqueryFcuston.open();
      },
      shoplist(data) {
        data.forEach(item => {
          this.list.push({
            FBILLNO: this.dataForm.FBILLNO
            , FENTRYID: "1"
            , FYEAR: 2024
            , FGRADE: "大一"
            , FCLASS: "化学系1班"
            , FSTUDNAME: "曹操"
          },{
            FBILLNO: this.dataForm.FBILLNO
            , FENTRYID: "2"
            , FYEAR: 2024
            , FGRADE: "大一"
            , FCLASS: "化学系1班"
            , FSTUDNAME: "刘备"
          })
        });
      },
      //
      cancel() {
        this.$refs.elForm.resetFields();
        this.list = [];
        this.visible = false;
      },
    },
  };
</script>